﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PBOffice.BLL;
using PBOffice.DAL;

public partial class NoteManager : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        User user = (User)Session["userManage"];//获取当前用户
        Display(user.UserNo);  
    }

    private void Display(int userNo)
    {  
        NoteManagerBLL n = new NoteManagerBLL();
        List<Note> noteList = n.ShowNote(userNo);
        dlNote.DataSource = noteList;
        dlNote.DataBind();
    }
    protected void lbNote_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Schedule/OneNoteSet.aspx");
    }
}